package com.driving.code.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wen
 * @since 2022-02-01
 */
public class Discuss implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 评论人Id
     */
    @TableField("commentator_id")
    private Integer commentatorId;

    /**
     * 题目Id
     */
    @TableField("question_id")
    private Integer questionId;

    /**
     * 评论内容
     */
    private String comment;

    @TableField(fill = FieldFill.INSERT)
    private Date created;

    private String name;

    @TableLogic
    private Integer deleted;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCommentatorId() {
        return commentatorId;
    }

    public void setCommentatorId(Integer commentatorId) {
        this.commentatorId = commentatorId;
    }

    public Integer getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Integer questionId) {
        this.questionId = questionId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getDeleted() {
        return deleted;
    }

    public void setDeleted(Integer deleted) {
        this.deleted = deleted;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    @Override
    public String toString() {
        return "Discuss{" +
        "id=" + id +
        ", commentatorid=" + commentatorId +
        ", questionid=" + questionId +
        ", comment=" + comment +
        ", created=" + created +
        ", deleted=" + deleted +
        "}";
    }
}
